package com.bgs.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import javax.xml.soap.Text;
import java.time.LocalDateTime;
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Notice对象", description="公告表")
public class NoticeVo {
    private static final long serialVersionUID = 1L;

    @TableId(value = "noticeId", type = IdType.AUTO)
    private Integer noticeid;

    @TableField("noticeName")
    private String noticename;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")//DateTimeFormat 是入参格式化；
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")//JsonFormat是出参格式化。
    @TableField("createTime")
    private LocalDateTime createtime;

    @TableField("serrName")
    private String serrname;

    @TableField("announcement")
    private String announcement;

    @TableField("sum")
    private Integer sum;
}
